import React from 'react'
import ReactDOM from 'react-dom/client'
import App from './App.tsx'
import './index.css'

// console.log(import.meta.env.VITE_WEB_MOCK)
// 判断配置文件里，mock是否要开启
if(import.meta.env.VITE_WEB_DEV === 'development' && import.meta.env.VITE_WEB_MOCK == true){
  // import "./mock/index.js"
  console.log("mock开启成功")

  require('./mock/index.js')
}

ReactDOM.createRoot(document.getElementById('root')!).render(
  <React.StrictMode>
    <App />
  </React.StrictMode>,
)
